{  Statement: http://acmp.ru/?main=task&id_task=68
   Verdict: Accepted
}
uses
        SysUtils, Math;

var
    n:longint;
    s:string;

begin
reset(input,'input.txt');
rewrite(output,'output.txt');
readln(s);
read(n);
if s = 'Home' then write('Yes') else
if odd(n) then write('Yes') else write('No');
end.